﻿using System;

namespace EasySL.Controls
{
    public enum ExFilterAction
    {
        NULL,

        Equals,
        NotEquals,

        Contains, 
        NotContains,
        BeginWith,
        EndWith,

        GreaterThan,
        LessThan,
        Between,
        Top10,
        AboveAverage, 
        BelowAverage,

        Clear
    }

    public static class ExFilterActionText
    {
        public static string ToString(this ExFilterAction action)
        {
            switch (action)
            {
                case ExFilterAction.NULL:
                    return string.Empty;
                case ExFilterAction.Equals:
                    return "Equals";
                case ExFilterAction.NotEquals:
                    return "Not Equals";
                case ExFilterAction.Contains:
                    return "Contains";
                case ExFilterAction.NotContains:
                    return "Not Contains";
                case ExFilterAction.BeginWith:
                    return "BeginWith";
                case ExFilterAction.EndWith:
                    return "EndWith";
                case ExFilterAction.GreaterThan:
                    return "Greater Than";
                case ExFilterAction.LessThan:
                    return "Less Than";
                case ExFilterAction.Between:
                    return "Between";
                default:
                    return string.Empty;
            }
        }
    }
}
